Only send the OFFLINE hotplug event if be->netif is set. Firstly, this ensures
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Tue, 21 Mar 2006 11:25:23 +0000 (12:25 +0100)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Tue, 21 Mar 2006 11:25:23 +0000 (12:25 +0100)
commitfb57267cd6b2a3e487e8fa4d139c99bf0897ff63
treed553e1577f50ed88f42b4eaffbb7df4efd75cbb5
parentd24b3a43ce48243505b1d31b6d6fbe9681a3d46e
Only send the OFFLINE hotplug event if be->netif is set.  Firstly, this ensures
that OFFLINE is only sent if the ONLINE event has been sent.  Secondly, this
fixes one possible cause of the reopened bug #549 as it prevents be->netif
being dereferenced inside netback_uevent.  Early reports suggest that this is
not the only cause of #549, so that bug remains open for now.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c